package com.yunji.ylexpiration.mapper;

import com.yunji.ylexpiration.entity.FurnShoppinTrolley;
import com.yunji.ylexpiration.entity.FurnShoppinTrolleyExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface FurnShoppinTrolleyMapper {
    int countByExample(FurnShoppinTrolleyExample example);

    int deleteByExample(FurnShoppinTrolleyExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(FurnShoppinTrolley record);

    int insertSelective(FurnShoppinTrolley record);

    List<FurnShoppinTrolley> selectByExample(FurnShoppinTrolleyExample example);

    FurnShoppinTrolley selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") FurnShoppinTrolley record, @Param("example") FurnShoppinTrolleyExample example);

    int updateByExample(@Param("record") FurnShoppinTrolley record, @Param("example") FurnShoppinTrolleyExample example);

    int updateByPrimaryKeySelective(FurnShoppinTrolley record);

    int updateByPrimaryKey(FurnShoppinTrolley record);

    List<FurnShoppinTrolley> selfurnshoopingtrolleyByuserid(@Param("userid")Integer userid);

    FurnShoppinTrolley selfurnshoopingtrolleyByshooid(@Param("shooid")Integer shooid);

    FurnShoppinTrolley selfurnshoopingtrolleyByshooidbyuid (@Param("id")Integer id,@Param("userid")Integer userid  ,@Param("colour")Integer colour);

    int sumshoopingtrolleyByshooid();
}